CDT 1998 Shawn T. Amundson [Mon, 28 Sep 1998 03:20:03 +0000 (03:20 +0000)]
gtk/gtkcalendar.c: examples/calendar/gcalendar.c: remove HAVE_FEATURES
Sun Sep 27 22:02:48 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gtk/gtkcalendar.h:
gtk/gtkcalendar.c:
examples/calendar/gcalendar.c: remove HAVE_FEATURES stuff
CDT 1998 Shawn T. Amundson [Sun, 27 Sep 1998 18:32:00 +0000 (18:32 +0000)]
gtk/gtkcalendar.c: examples/calendar: Added gtkcalendar widget and demo
Sun Sep 27 02:18:06 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gtk/gtkcalendar.h:
gtk/gtkcalendar.c:
examples/calendar: Added gtkcalendar widget and demo
Tim Janik [Sat, 26 Sep 1998 06:31:30 +0000 (06:31 +0000)]
adde g_return_if_fail() statements.
Sat Sep 26 06:15:34 1998 Tim Janik <timj@gtk.org>
* gtk/gtkclist.c (gtk_clist_sort):
(gtk_clist_clear):
(gtk_clist_unselect_all):
(gtk_clist_select_all): adde g_return_if_fail() statements.
Tim Janik [Sat, 26 Sep 1998 03:12:03 +0000 (03:12 +0000)]
set binary age and interface age to 0.
Sat Sep 26 04:46:22 1998 Tim Janik <timj@gtk.org>
* configure.in: set binary age and interface age to 0.
* gtk/gtkspinbutton.h:
* gtk/gtkspinbutton.c: changed gtk_spin_button_construct to
gtk_spin_button_configure. gtk_spin_button_construct is still defined
as an alias for gtk_spin_button_configure for source compatibility,
but actuall use is deprecated.
typeness corrections, i.e. gint->gboolean and gint->guint.
added object arguments: GtkSpinButton::value, GtkSpinButton::wrap,
GtkSpinButton::shadow_type, GtkSpinButton::update_policy,
GtkSpinButton::numeric, GtkSpinButton::snap_to_ticks,
GtkSpinButton::adjustment, GtkSpinButton::digits and
GtkSpinButton::climb_rate.
GtkType and macro fixups.
Tim Janik [Fri, 25 Sep 1998 23:04:32 +0000 (23:04 +0000)]
new function to get the *real* geometry position of a window, taken
Sat Sep 25 23:33:55 1998 Tim Janik <timj@gtk.org>
* gdk/gdkwindow.c (gdk_window_get_root_origin): new function to get
the *real* geometry position of a window, taken possible window
manager offsets into account.
this has been succesfully tested with fvwm, fvwm-2, bowman, olwm,
olvwm, twm, ctwm, mlvwm, windowmaker and enlightenment.
it does fail though for amiwm which adds windows to a pseudo root
window, and for icewm by a small offset because it defines the
geometry position whithin its border.
* gtk/testgtk.c: added "saved position" test to figure how
gdk_window_get_root_origin() interacts with window managers (repopup
this window to figure ;).
Tim Janik [Wed, 23 Sep 1998 04:47:45 +0000 (04:47 +0000)]
update to Gtk+ version 1.1.3, binary age 1, interface age 1.
Wed Sep 23 06:09:19 1998 Tim Janik <timj@gtk.org>
* configure.in: update to Gtk+ version 1.1.3, binary age 1,
interface age 1.
* gtk/gtkobject.c
(gtk_object_ref):
(gtk_object_unref): check for ->ref_count to be greater than 0 (the
existing code was buggy in letting ->ref_count==0 pass through and
then failing the living_objs_ht assertion).
* gtk/gtkclist.c (draw_row): fix chopping bug for right justified
pixtext fields (Roman Pozlevich <roma@botik.ru>).
CDT 1998 Shawn T. Amundson [Tue, 22 Sep 1998 05:13:22 +0000 (05:13 +0000)]
Released GTK+ 1.1.2
Mon Sep 21 23:53:18 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GTK+ 1.1.2
Manish Singh [Mon, 21 Sep 1998 08:28:53 +0000 (08:28 +0000)]
Shut up gcc AND cvs
-Yosh
jaycox [Mon, 21 Sep 1998 08:14:10 +0000 (08:14 +0000)]
use $(PERL) instead of perl render properly in non-square aspect ratios.
* gtk/Makefile.am: use $(PERL) instead of perl
* gtk/gtkcolorsel.c: render properly in non-square aspect ratios.
also much faster to render.
Manish Singh [Mon, 21 Sep 1998 06:28:24 +0000 (06:28 +0000)]
This shouldn't be there
-Yosh
Tim Janik [Mon, 21 Sep 1998 06:14:18 +0000 (06:14 +0000)]
reallocate the required memory block, rather than allocating it newly from
Mon Sep 21 07:44:30 1998 Tim Janik <timj@gtk.org>
* gtk/gtkobject.c (gtk_object_class_add_signals): reallocate
the required memory block, rather than allocating it newly from
scratch and doing a full-blown block copy on it.
Manish Singh [Mon, 21 Sep 1998 02:54:58 +0000 (02:54 +0000)]
shut up CVS
-Yosh
Tim Janik [Mon, 21 Sep 1998 02:34:44 +0000 (02:34 +0000)]
more NEWS updates
Tim Janik [Mon, 21 Sep 1998 02:31:39 +0000 (02:31 +0000)]
NEWS file update for upcoming release of Gtk+ version 1.1.2, binary age 0,
Mon Sep 21 02:30:06 1998 Tim Janik <timj@gtk.org>
* NEWS file update for upcoming release of Gtk+ version 1.1.2,
binary age 0, interface age 0.
* gtk/gtkmain.c (gtk_init): enforce gtk-modules to always be resident.
Owen Taylor [Sun, 20 Sep 1998 22:14:58 +0000 (22:14 +0000)]
Patch to libtool-1.2b to make --disable-static
Sun Sep 20 18:21:46 1998 Owen Taylor <otaylor@redhat.com>
* ltconfig.sh: Patch to libtool-1.2b to make --disable-static
Marius Vollmer [Sun, 20 Sep 1998 18:10:03 +0000 (18:10 +0000)]
More stuff about the type system.
Owen Taylor [Sun, 20 Sep 1998 14:58:08 +0000 (14:58 +0000)]
indent other than GNU indent should be OK now.
Sun Sep 20 09:52:39 1998 Owen Taylor <otaylor@gtk.org>
* HACKING: indent other than GNU indent should be OK
now.
* gtk/genmarshal.pl gtk/Makefile.am: Call indent on file
instead of piping through indent. If indent wasn't
found in ./configure don't bother indenting at
all.
Owen Taylor [Sun, 20 Sep 1998 14:54:19 +0000 (14:54 +0000)]
file libtool-1.2.patch was initially added on branch gtk-1-0.
Owen Taylor [Sun, 20 Sep 1998 13:35:24 +0000 (13:35 +0000)]
Add names to prototype for gdk_image_new_bitmap.
Fri Sep 18 19:11:10 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.h: Add names to prototype for gdk_image_new_bitmap.
Raja R Harinath [Sun, 20 Sep 1998 02:35:59 +0000 (02:35 +0000)]
Forgot to commit this
jaycox [Sat, 19 Sep 1998 01:54:04 +0000 (01:54 +0000)]
gtk/Makefile.am: use $(AWK) instead of awk
gtk/Makefile.am: use $(AWK) instead of awk
Raja R Harinath [Fri, 18 Sep 1998 20:20:23 +0000 (20:20 +0000)]
Remove references to $(top_srcdir). (gtk.defs,
* gtk/Makefile.am (gdk_headers):
Remove references to $(top_srcdir).
(gtk.defs, gtktypebuiltins{.h,_vars.c,_ids.c,_evals.c}): Simplify.
* gtk/makeenums.pl (parse_entries): Don't look for $srcdir.
Tim Janik [Fri, 18 Sep 1998 18:19:00 +0000 (18:19 +0000)]
changed gpointer object_data; to GData*object_data to cure compiler
Fri Sep 18 19:58:24 1998 Tim Janik <timj@gtk.org>
* gtk/gtkobject.h (struct _GtkObject): changed gpointer object_data; to
GData*object_data to cure compiler warnings.
Manish Singh [Fri, 18 Sep 1998 02:07:42 +0000 (02:07 +0000)]
updated to latest automake version
-Yosh
Manish Singh [Thu, 17 Sep 1998 22:59:18 +0000 (22:59 +0000)]
shutup CVS further
-Yosh
Raja R Harinath [Thu, 17 Sep 1998 18:16:10 +0000 (18:16 +0000)]
Move `gtkfeature.h' ... (gtkinclude_HEADERS): ... here. (gtk.defs): Pass
* gtk/Makefile.am (source_headers): Move `gtkfeature.h' ...
(gtkinclude_HEADERS): ... here.
(gtk.defs): Pass `g' flag to sed, to replace all occurances.
Raph Levien [Thu, 17 Sep 1998 17:52:00 +0000 (17:52 +0000)]
Added GNU indent to HACKING, as it is now required to build.
Owen Taylor [Thu, 17 Sep 1998 15:40:22 +0000 (15:40 +0000)]
Update to libtool-1.2b, change library versioning scheme to drop
Tue Sep 15 14:57:30 1998 Owen Taylor <otaylor@redhat.com>
* Makefile.am gtk-config.in l*: Update to libtool-1.2b,
change library versioning scheme to drop LT_RELEASE
from the -l line, while keeping it in the soname.
Tue Sep 15 14:10:33 1998 Owen Taylor <otaylor@redhat.com>
* configure.in Makefile.in: define a MAINT-like variable REBUILD
which is set if Perl and awk are found, and autogenerated sources
can be rebuilt. Remove the auto-generated sources from
CVS.
Add dependencies so that the autogenerated sources are
rebuilt if the files they depend on change.
(This unfortunately currently results in the entire
gtk/ directory being rebuilt when any header changes.
Moving all enums to gtkenums.h would fix this.)
Tim Janik [Thu, 17 Sep 1998 05:00:30 +0000 (05:00 +0000)]
added gtk_object_set_data_destroy and gtk_object_set_data_destroy_by_id
Thu Sep 17 05:12:48 1998 Tim Janik <timj@gtk.org>
* gtk/gtkobject.h: added gtk_object_set_data_destroy and
gtk_object_set_data_destroy_by_id functions to set the destroy
function pointer for an existing data portion.
* gtk/gtkobject.c: removed the GtkObjectData implementation and
made all gtk_object_*data* functions use the GLib equivalents.
Arturo Espinosa [Wed, 16 Sep 1998 23:34:03 +0000 (23:34 +0000)]
sync
Federico Mena Quintero [Wed, 16 Sep 1998 23:33:25 +0000 (23:33 +0000)]
Test whether type is not equal to GTK_TOOLBAR_CHILD_RADIOBUTTON before
1998-09-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtktoolbar.c (gtk_toolbar_insert_element): Test whether type
is not equal to GTK_TOOLBAR_CHILD_RADIOBUTTON before checking that
(widget != NULL), otherwise radio button insertion will not work
-- the widget argument is NULL for the first radio button in the
group.
Owen Taylor [Tue, 15 Sep 1998 17:08:38 +0000 (17:08 +0000)]
Reverted global changes of g_new to malloc(), added back in the one place
Tue Sep 15 13:09:24 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdkimage.c (gdk_image_new): Reverted global changes
of g_new to malloc(), added back in the one place where
it actually mattered. #include <stdlib.h>.
* gdk/gdkrgb.c: g_malloc() to malloc() as above.
Owen Taylor [Tue, 15 Sep 1998 14:59:48 +0000 (14:59 +0000)]
Don't request a new size from the WM if we asked for the same size before
Tue Sep 15 11:06:13 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwindow.c (gtk_window_move_resize): Don't request
a new size from the WM if we asked for the same size
before and our request was rejected.
* gtk/gtkwindow.c (gtk_window_configure_event): If
in response to a request, we get a configure event
with unchanged dimensions, send a synthetic expose
since ForgetGravity won't expose our window.
Mon Sep 14 14:28:24 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c (adjust_adj): Change the way we
set the adjustments on resize so that it tries to
keep the beginning of the text in approximately
the same place.
Removed assertion that the above change made invalid.
CDT 1998 Shawn T. Amundson [Tue, 15 Sep 1998 03:12:54 +0000 (03:12 +0000)]
changed g_new()s to malloc()s and g_free()s to free()s to avoid mixing
Mon Sep 14 21:47:35 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gdk/gdkimage.c: changed g_new()s to malloc()s and
g_free()s to free()s to avoid mixing g_new()s with
free()s. X itself uses free() on some of the
malloced memory.
Owen Taylor [Sat, 12 Sep 1998 14:41:04 +0000 (14:41 +0000)]
at Sep 12 10:44:06 1998 Owen Taylor <otaylor@redhat.com>
* gtkfilesel.c: Maintain a list of directories like
/afs we know contain only directories, and avoid
stat'ing files in those directories. (Because
stat'ing all files in /afs is extremely expensive)
To support automounters, try to open directories,
even if we couldn't find them when reading their
parent directory.
Lars Hamann [Fri, 11 Sep 1998 13:52:42 +0000 (13:52 +0000)]
new function to set/unset the selectable flag of a single row.
* gtk/gtkclist.c (gtk_clist_set_selectable): new function
to set/unset the selectable flag of a single row.
(gtk_clist_get_selectable): new function
to get the state of the selectable flag
* gtk/gtkctree.c (gtk_ctree_node_set_selectable)
(gtk_ctree_node_get_selectable): clist analogons
Raph Levien [Fri, 11 Sep 1998 00:11:05 +0000 (00:11 +0000)]
Checking in minor changes. Now synced with 0.9.0.
Manish Singh [Wed, 9 Sep 1998 09:51:44 +0000 (09:51 +0000)]
added -posix check for NeXTStep
* configure.in: added -posix check for NeXTStep
* gtk/testthreads.c: applied part of gtk-joke-980907-0 to use
a unique buffer for each thread.
* docs/gtk-config.1: clarified copyright
-Yosh
Tim Janik [Tue, 8 Sep 1998 09:24:22 +0000 (09:24 +0000)]
minor fixup
Tim Janik [Tue, 8 Sep 1998 04:08:17 +0000 (04:08 +0000)]
use g_atexit() instead of ATEXIT.
Tue Sep 8 05:19:51 1998 Tim Janik <timj@gtk.org>
* gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT.
* gtk/gtkmain.c (gtk_init): use g_atexit() instead of ATEXIT.
* gtk/gtkobject.c (gtk_object_init_type): use g_atexit() instead of
ATEXIT.
* ltconfig: use GLib's ltconfig which honours lcc.
Manish Singh [Tue, 8 Sep 1998 03:09:54 +0000 (03:09 +0000)]
comment the -std1 check and save LIBS properly
-Yosh
Manish Singh [Mon, 7 Sep 1998 02:16:41 +0000 (02:16 +0000)]
cosmetic case change
-Yosh
Manish Singh [Sun, 6 Sep 1998 19:36:56 +0000 (19:36 +0000)]
#include <stdlib.h> for rand()
-Yosh
Owen Taylor [Sat, 5 Sep 1998 21:22:51 +0000 (21:22 +0000)]
When the pointer is grabbed on an input window, either explicitely, or
Sat Sep 5 16:01:19 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkinputxfree.h gdk/gdk.c gdk/gdkinputgxi.h:
When the pointer is grabbed on an input window,
either explicitely, or through press-grab, and
then grabbed on a non-input window, ungrab the
devices.
Tim Janik [Sat, 5 Sep 1998 06:54:20 +0000 (06:54 +0000)]
don't include any gdk headers. added structure definitions for
Sat Sep 5 07:13:19 1998 Tim Janik <timj@gtk.org>
* gtk/gtktypeutils.h: don't include any gdk headers.
added structure definitions for GtkTypeObject and GtkTypeClass,
which cover the very basic fields of GtkObject and GtkObjectClass,
which are actually used by the type system.
* gtk/gtktypeutils.c: don't include gtkobject.h or gtkcontainer.h,
we only refer to our own structures. improved class inheritance
sanity checking a bit.
* gtk/gtkobject.h: placed appropriate comments at the beginnings
of the GtkObject and GtkObjectClass structures, which explain
their relationship to GtkTypeObject and GtkTypeClass.
* gtk/gtktypeutils.h:
* gtk/gtkobject.h:
moved GTK_STRUCT_OFFSET(), GTK_CHECK_CAST(), GTK_CHECK_CLASS_CAST(),
GTK_CHECK_TYPE() and GTK_CHECK_CLASS_TYPE() macro definitions from
gtkobject.h to gtktypeutils.h.
* gtk/gtkobject.h:
* gtk/gtkobject.c:
removed gtk_object_check_cast() and gtk_object_check_class_cast()
functions. to keep source compatibility, we can provide macro aliases
for the corresponding gtk_type_* functions. but then again, people
shouldn't have been using these functions anyways since they were part
of Gtk's internal API.
* gtk/gtktypeutils.h:
* gtk/gtktypeutils.c:
implemented gtk_type_check_object_cast() and gtk_type_check_class_cast()
functions to check GtkTypeObject and GtkTypeClass types.
Tim Janik [Thu, 3 Sep 1998 07:28:37 +0000 (07:28 +0000)]
`const' fixups.
Thu Sep 3 07:16:54 1998 Tim Janik <timj@gtk.org>
* gtk/gtkctree.h:
* gtk/gtkctree.c: `const' fixups.
* gtk/gtkclist.h:
* gtk/gtkclist.c: `const' fixups and some coding style adaptions.
* gtk/gtkctree.c (gtk_ctree_insert_node): don't dereference *text
if it is passed as NULL.
Raph Levien [Thu, 3 Sep 1998 05:47:08 +0000 (05:47 +0000)]
Fixed up some of the bigendian 32bpp modes.
Tim Janik [Thu, 3 Sep 1998 02:48:52 +0000 (02:48 +0000)]
plug another small GtkSIgnalQuery leak.
Thu Sep 3 04:45:57 1998 Tim Janik <timj@gtk.org>
* gtk/gtkaccelgroup.c (gtk_accel_group_add): plug another small
GtkSIgnalQuery leak.
Tim Janik [Thu, 3 Sep 1998 02:38:53 +0000 (02:38 +0000)]
GTK_MENU_DIR_CHILD: check for the existance of
Thu Sep 3 04:22:20 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
GTK_MENU_DIR_CHILD: check for the existance of
menu_shell->active_menu_item before accessing its child.
GTK_MENU_DIR_PREV:
GTK_MENU_DIR_NEXT: if we haven't had an active item and still
don't, make a default selection.
Wed Sep 2 00:28:58 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c (gtk_widget_propagate_state): iterate
the children with _forall for sensitivity changes and with
_foreach on pure state changes. this fixes a lot of the
old inclusions of internal widgets into _foreach calls.
* gtk/gtktree.c: removed gtk_tree_foreach, let gtk_tree_forall
do the work. don't walk the subtrees of first level children.
* gtk/gtktreeitem.c: provide a _forall implementation,
which walks the subtrees as well for include_internals.
* gtk/gtkmenuitem.c: provide a _forall implementation, which walks
the submenus as well for include_internals.
* gtk/gtkscrolledwindow.c: removed gtk_scrolled_window_foreach and
implemented gtk_scrolled_window_forall, which will iterate over
the viewport and the scrollbars for gtk_container_forall or
iterate over the viewports children for gtk_container_foreach.
* gtk/gtktoolbar.c:
* gtk/gtktable.c:
* gtk/gtkpaned.c:
* gtk/gtkpacker.c:
* gtk/gtkmenushell.c:
* gtk/gtklist.c:
* gtk/gtkfixed.c:
* gtk/gtkclist.c:
* gtk/gtkbox.c:
* gtk/gtkbin.c:
* gtk/gtknotebook.c:
removed the old gtk_*_foreach functions and provided gtk_*_forall.
* gtk/gtknotebook.c:
(gtk_notebook_real_switch_page): expose tabs.
(gtk_notebook_page_num): new function to return the page number
of a distinct child.
(gtk_notebook_focus): minor fixups. foxus handling is still screwed
under some circumstances.
* gtk/gtktreeitem.c:
(gtk_real_tree_item_select):
(gtk_real_tree_item_deselect): major fixes.
some general fixups wrt queue_redraw, and tree items not being
NO_WINDOW widgets.
* gtk/gtklistitem.c:
(gtk_real_list_item_select):
(gtk_real_list_item_deselect):
(gtk_real_list_item_toggle):
removed unneccessary queue_redraw calls.
Wed Aug 30 09:42:07 1998 Tim Janik <timj@gtk.org>
* gtk/gtkoptionmenu.c: allow optionmenus to have the focus and
automatically popup the menu on space bar.
Wed Aug 26 06:40:34 1998 Tim Janik <timj@gtk.org>
* gtk/gtkcontainer.h:
* gtk/gtkcontainer.c: implemented gtk_container_forall() (as a class
method), which acts similar to gtk_container_foreach(), but iterates
over internal children. the GtkContainer::foreach signal vanished in
favour of a new class method ->forall() that optionally includes
internal widgets.
* gtk/gtkclist.c (gtk_clist_init): provide no _foreach implementation
but a _forall implementation, since all child widgets we have are
internal ones.
(column_button_create): set the parent window prior
to gtk_widget_set_parent().
* gtk/gtkwidget.c:
exchanged all calls to gtk_container_foreach() with
gtk_container_forall().
* gtk/gtkwidget.h:
* gtk/gtkwidget.c: added the GTK_COMPOSITE_CHILD, exported through
the GtkWidget::composite_child argument. to have a widget created
with the flag initially, two new functions got added to wrap a widgets
creation:
gtk_widget_push_composite_flag() and gtk_widget_pop_composite_flag().
Wed Aug 25 23:37:39 1998 Tim Janik <timj@gtk.org>
* gtk/gtktooltips.h:
* gtk/gtktooltips.c: exported gtk_tooltips_create_window() as
gtk_tooltips_force_window(), so tooltips->tip_window can be accessed
prior to the first tip being set.
don't put an extra reference on the window, since it is a toplevel,
it wont get destroyed from anywhere else.
* overall macro and GtkType fixups.
Federico Mena Quintero [Wed, 2 Sep 1998 21:46:49 +0000 (21:46 +0000)]
Replaced "foo == TRUE" and "foo == FALSE" constructs by more forgiving
1998-09-02 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkcolorsel.c: Replaced "foo == TRUE" and "foo == FALSE"
constructs by more forgiving ones. (Does anyone else feel like
the color selector need rewriting?).
Owen Taylor [Tue, 1 Sep 1998 18:41:26 +0000 (18:41 +0000)]
Unref the adjustment.
Tue Sep 1 10:53:52 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkprogress.c (gtk_progress_finalize): Unref
the adjustment.
* gtk/gtkmenu.c: Modified reference counting so
that the reference count from the toplevel that
the menu creates to the menu is invisible to the
application.
Raph Levien [Tue, 1 Sep 1998 06:01:30 +0000 (06:01 +0000)]
I should have added testrgb to the .cvsignore last time. Now I have.
Raph Levien [Tue, 1 Sep 1998 05:29:45 +0000 (05:29 +0000)]
Minor improvements to gdkrgb, added testrgb to the gtk directory.
Frank Belew (Myth) [Tue, 1 Sep 1998 05:20:20 +0000 (05:20 +0000)]
file .cvsignore was initially added on branch themes-2.
Raph Levien [Mon, 31 Aug 1998 22:18:18 +0000 (22:18 +0000)]
Added a gdk_draw_rgb_image_dithalign function.
Manish Singh [Sat, 29 Aug 1998 22:27:47 +0000 (22:27 +0000)]
quell some warnings with g_hash_table_new
* gdk/gdkcolor.c:
(gdk_colormap_new) (gdk_colormap_get_system):
quell some warnings with g_hash_table_new
* gtk/gtkaccelgroup.c (gtk_accel_group_add): free the GtkSignalQuery when
we're done with it
* gtk/itemfactory.c:
(gtk_item_factory_from_path):
(gtk_item_factory_create_item): free some strings
* gtk/gtklabel.c:
(gtk_label_finalize): free label->pattern when done
(gtk_label_parse_uline): null terminate pattern string, delete some duplicated
code
* gtk/testthreads.c: add #include <unistd.h> for sleep()
-Yosh
Owen Taylor [Tue, 25 Aug 1998 22:22:12 +0000 (22:22 +0000)]
Make sure the mark we pass to line start is the beginning of a real line,
Tue Aug 25 16:52:47 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c (recompute_geometry): Make sure the
mark we pass to line start is the beginning of a
real line, not a wrapped one.
Marius Vollmer [Tue, 25 Aug 1998 20:51:58 +0000 (20:51 +0000)]
Started to document the lowest layers of the type system.
Arturo Espinosa [Tue, 25 Aug 1998 16:44:03 +0000 (16:44 +0000)]
Updated the stupid builtins file, again - Federico
Owen Taylor [Tue, 25 Aug 1998 00:06:38 +0000 (00:06 +0000)]
Reference count the fonts used in the text widget.
Mon Aug 24 18:37:15 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c: Reference count the fonts used in
the text widget.
* gdk/gdk.h gdk/gdkcolor.c: Rename the color allocation
freeing functions to be more consistent, and more
convenient; leave the old names in for backwards compatibility.
* gdk/gdkcolor.c gdk/gdkprivate.h: Reference count the
allocations in pseudo-color colormaps to greatly reduce
calls to XAllocColor. Keep a per-colormap hashtable to
speed up finding if there is an already-allocated matching
color.
* gdk/gdkcolor.c: Don't just match read the system colormap
when the colormap is created, but synchronize our copy
with the system colormap periodically.
* gdk/gdk.c gdk/gdktypes.h gtk/gtkentry.c gtk/gtktext.c:
Change XIM constants names to match GDK conventions
* gtk/testinput.c: Allow the drawing area to get the focus.
* gtk/testgtk.c: Change around the Text test to demonstrates
multiple fonts, use more colors.
* gtk/gtkwidget.c: Improve gtk_widget_get_colormap()/visual()
so they work after a widget is unrealized.
* gtk/gtktext.[ch]: Remove the requirement that the text
widget be realized before adding text (!) Allocate colors
ourself, instead of requiring the caller allocate them.
Allow changing styles to work properly by keeping track
of the values for a certain property are default or
set explicitely.
* gtk/gtkmenu.h: Added some comments.
* gtk/gtkentry.c: Changes to match XIM constants.
* gtk/gdk.h gdk/gdkwindow.c: Add gdk_drawable_set_data(),
for adding keyed data to drawables. (Uses g_dataset
internally)
* gdk/gdkpixmap.c: Keep track of the colors we allocate,
when creating an XPM - store them as user data for the GdkPixmap,
so we don't leak colors when we create pixmaps from XPM's.
Allocate memory for color information in large blocks instead of
as many little pieces.
Manish Singh [Mon, 24 Aug 1998 18:13:08 +0000 (18:13 +0000)]
removed some unused variables
* gdk/gdkrgb.c: removed some unused variables
* gtk/gtkclist.c
* gtk/gtkmain.c: #if 0'd out some unused code
* gtk/gtkobject.c: check for NULL object hash table in gtk_object_debug
-Yosh
Tim Janik [Mon, 24 Aug 1998 05:27:29 +0000 (05:27 +0000)]
begin the parameter elipsis (...) after the first argument name. this
Mon Aug 24 02:36:53 1998 Tim Janik <timj@gtk.org>
* gtk/gtkarg.h:
* gtk/gtkarg.c:
* gtk/gtkwidget.h:
* gtk/gtkwidget.c:
* gtk/gtkobject.h:
* gtk/gtkobject.c:
* gtk/gtkcontainer.h:
* gtk/gtkcontainer.c:
(gtk_object_new):
(gtk_object_set):
(gtk_widget_new):
(gtk_widget_set):
(gtk_container_add_with_args):
(gtk_container_child_set):
begin the parameter elipsis (...) after the first argument name. this
change is source compatible, since it was always required, even as NULL.
(gtk_args_collect):
(gtk_object_args_collect):
(gtk_container_child_args_collect):
changed prototypes to pass first_arg_name, also, pass va_list variable
by value (portability concerns). callers changed.
* gtk/gtkargcollector.c: implemented gtk_arg_collect_value() as
a huge macro GTK_ARG_COLLECT_VALUE() <shrug>. this is needed because we
can't pass va_list variables by reference for portability reasons.
Raph Levien [Sat, 22 Aug 1998 05:41:32 +0000 (05:41 +0000)]
Added some calls to gdk_rgb_init, so it's much more likely to correctly
initialize now.
Carsten Haitzler [Sat, 22 Aug 1998 01:29:55 +0000 (01:29 +0000)]
file makemakefile.sh was initially added on branch themes-2.
Carsten Haitzler [Sat, 22 Aug 1998 01:29:54 +0000 (01:29 +0000)]
file README was initially added on branch themes-2.
Carsten Haitzler [Sat, 22 Aug 1998 01:29:53 +0000 (01:29 +0000)]
file Makefile.am was initially added on branch themes-2.
Carsten Haitzler [Sat, 22 Aug 1998 01:29:52 +0000 (01:29 +0000)]
file ICON.png was initially added on branch themes-2.
Owen Taylor [Sat, 22 Aug 1998 00:13:35 +0000 (00:13 +0000)]
file ltmain.sh was initially added on branch themes-2.
Owen Taylor [Sat, 22 Aug 1998 00:13:34 +0000 (00:13 +0000)]
file ltconfig was initially added on branch themes-2.
Owen Taylor [Fri, 21 Aug 1998 23:47:22 +0000 (23:47 +0000)]
file makemakefile.sh was initially added on branch themes-2.
Owen Taylor [Fri, 21 Aug 1998 23:47:21 +0000 (23:47 +0000)]
file Makefile.am was initially added on branch themes-2.
Owen Taylor [Fri, 21 Aug 1998 23:47:20 +0000 (23:47 +0000)]
file .cvsignore was initially added on branch themes-2.
Owen Taylor [Fri, 21 Aug 1998 23:41:07 +0000 (23:41 +0000)]
file install-sh was initially added on branch themes-2.
Owen Taylor [Fri, 21 Aug 1998 23:41:06 +0000 (23:41 +0000)]
file README was initially added on branch themes-2.
Owen Taylor [Fri, 21 Aug 1998 23:41:05 +0000 (23:41 +0000)]
file NEWS was initially added on branch themes-2.
Owen Taylor [Fri, 21 Aug 1998 23:41:02 +0000 (23:41 +0000)]
file ChangeLog was initially added on branch themes-2.
Owen Taylor [Fri, 21 Aug 1998 23:41:01 +0000 (23:41 +0000)]
file AUTHORS was initially added on branch themes-2.
Stuart Parmenter [Fri, 21 Aug 1998 17:07:11 +0000 (17:07 +0000)]
added GTK_HAVE_FEATURES_1_1_2
Tim Janik [Fri, 21 Aug 1998 02:22:06 +0000 (02:22 +0000)]
added a function to perform a binary version check, returning a static
Fri Aug 21 02:31:26 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmain.h:
* gtk/gtkmain.c (gtk_check_version): added a function to perform a
binary version check, returning a static string for error descriptions,
or NULL on success.
Owen Taylor [Fri, 21 Aug 1998 00:13:38 +0000 (00:13 +0000)]
Check to see if we've computed our geometry yet, and if not, ignore the
Thu Aug 20 20:08:15 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c ([un]draw_cursor): Check to see if we've
computed our geometry yet, and if not, ignore the request.
gtk/gtktext.c (correct_cache_insert): Fiddled around]
some more. All the bug-test codes seem to work at once
now. (fingers crossed...)
Carsten Haitzler [Thu, 20 Aug 1998 22:20:49 +0000 (22:20 +0000)]
file gtkrc was initially added on branch themes-2.
Carsten Haitzler [Thu, 20 Aug 1998 22:20:06 +0000 (22:20 +0000)]
file metal_theme_main.c was initially added on branch themes-2.
Carsten Haitzler [Thu, 20 Aug 1998 22:20:05 +0000 (22:20 +0000)]
file metal_theme_draw.c was initially added on branch themes-2.
Carsten Haitzler [Thu, 20 Aug 1998 22:20:04 +0000 (22:20 +0000)]
file metal_theme.h was initially added on branch themes-2.
Carsten Haitzler [Thu, 20 Aug 1998 22:20:03 +0000 (22:20 +0000)]
file README.metal was initially added on branch themes-2.
Manish Singh [Thu, 20 Aug 1998 20:10:52 +0000 (20:10 +0000)]
silly visual fixes
* gdk/gdkrgb.c: silly visual fixes
* gtk/testgtk.c: call gdk_rgb_init so color preview test actually works
-Yosh
Federico Mena Quintero [Thu, 20 Aug 1998 16:55:16 +0000 (16:55 +0000)]
Do not do anything if the event's window is not the bin window.
1998-08-20 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Do not do
anything if the event's window is not the bin window.
(gtk_handle_box_motion): Likewise.
Raph Levien [Thu, 20 Aug 1998 06:59:26 +0000 (06:59 +0000)]
Change to testgtk to go along with GdkRgb integration into gtk_preview.
Raph Levien [Thu, 20 Aug 1998 06:52:52 +0000 (06:52 +0000)]
Minor fixes that were needed for the Gimp/GdkRgb integration.
Tim Janik [Tue, 18 Aug 1998 22:22:22 +0000 (22:22 +0000)]
allow argument parsing in gtk without G_ENABLE_DEBUG being defined
Wed Aug 19 00:11:14 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmain.c (gtk_init): allow argument parsing in gtk without
G_ENABLE_DEBUG being defined (specifically --gtk-module= and
--g-fatal-warnings), noticed by miguel.
Tim Janik [Tue, 18 Aug 1998 16:58:09 +0000 (16:58 +0000)]
use g_get_current_dir() instead of getcwd().
Tue Aug 18 17:54:40 1998 Tim Janik <timj@gtk.org>
* gtk/gtkrc.c (gtk_rc_parse_file): use g_get_current_dir() instead of
getcwd().
* gdk/gdkprivate.h:
* gdk/gdkglobals.c:
* gdk/gdkwindow.c:
* gdk/gdk.c:
* gtk/gtkwindow.c:
* gtk/gtkitemfactory.c:
dropped gdk_progname, use g_get_prgname()/g_set_prgname() instead.
* gtk/gtkselection.c:
* gtk/gtkpreview.c:
* gtk/gtkobject.c:
* gtk/gtkmain.c:
* gtk/gtktypeutils.c: indentation fixes due to g_message() use.
* gdk/gdkrgb.c: exchanged occourances of g_print with g_message.
Lars Hamann [Tue, 18 Aug 1998 15:31:49 +0000 (15:31 +0000)]
fix for sigsegv in case of show_tabs == NULL
Tue Aug 18 17:22:22 1998 Lars Hamann <lars@gtk.org>
* gtk/gtknotebook.c (gtk_notebook_switch_focus_tab):
* gtk/gtknotebook.c (gtk_notebook_update_labels): fix for sigsegv
in case of show_tabs == NULL
Tim Janik [Tue, 18 Aug 1998 03:59:41 +0000 (03:59 +0000)]
restricted the --g*fatal-* arguments to --g-fatal-warnings again. this
Tue Aug 18 03:54:43 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmain.c (gtk_init): restricted the --g*fatal-* arguments
to --g-fatal-warnings again. this option now causes log levels of
WARNING and CRITICAL to abort().
* gdk/gdk.c:
* gdk/gdkdnd.c:
* gdk/gdkcc.c:
* gdk/gdkfont.c:
* gdk/gdkwindow.c:
* gdk/gdkvisual.c:
* gtk/gtkwidget.c:
* gtk/gtktypeutils.c:
* gtk/gtktree.c:
* gtk/gtkfontsel.c:
* gtk/gtkmain.c:
* gtk/gtkobject.c:
* gtk/gtkpreview.c:
* gtk/gtkselection.c:
* gtk/gtktext.c:
* gtk/gtktree.c:
* gtk/gtktreeitem.c:
did a global search&replace to substitute g_print() calls with
g_message(). libraries shouldn't use printf(), g_print() or
g_printerr() at all.
a bunch of the replacements should probably be wrapped into the
G{D|T}K_NOTE() macros, so they are special cased for debugging
purposes in a sane way, avoiding all the nasty #ifdef DEBUG_MY_TEDDY
things.
* gdk/gdkrgb.c: left this out currently.
* gdk/gdkdnd.c: added copyright notice.
Raph Levien [Tue, 18 Aug 1998 00:34:43 +0000 (00:34 +0000)]
It works better when I actually check the file in :) (I.e. this is the
speedup I was trying to check in a minute ago).
Raph Levien [Tue, 18 Aug 1998 00:32:34 +0000 (00:32 +0000)]
More speedups to the 565_d case.
Lars Hamann [Mon, 17 Aug 1998 23:48:04 +0000 (23:48 +0000)]
new class methods: (sort_list) (insert_row) (remove_row)
Tue Aug 18 00:29:13 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkclist.h:
(struct _GtkCListClass): new class methods:
(sort_list) (insert_row) (remove_row) (set_cell_contents)
* gtk/gtkclist.c :
(cell_empty) (cell_set_text) (cell_set_pixmap) (cell_set_pixtext):
removed and replaced by (set_cell_contents)
(set_cell_contents): function for class method set_cell_contents
(real_insert_row): function for class method insert_row
(real_remoce_row): function for class method remove_row
(real_sort_list): function for class method sort_list
(default_compare): fix to avoid problems with cell types != CELL_TEXT
* gtk/gtkctree.h :
(gtk_ctree_export_to_gnode): new function to export a ctree as gnode
(gtk_ctree_node_is_visible): new function to return visibility state
of a node
(gtk_ctree_show_stub): new function to set visibility of root stub
renamed functions :
(gtk_ctree_insert) -> (gtk_ctree_insert_node)
(gtk_ctree_remove) -> (gtk_ctree_remove_node)
(gtk_ctree_find_glist_ptr) -> (gtk_ctree_find_node_ptr)
(gtk_ctree_set_text) -> (gtk_ctree_node_set_text)
(gtk_ctree_set_pixmap) -> (gtk_ctree_node_set_pixmap)
(gtk_ctree_set_pixtext) -> (gtk_ctree_node_set_pixtext)
(gtk_ctree_set_shift) -> (gtk_ctree_node_set_shift)
(gtk_ctree_get_cell_type) -> (gtk_ctree_node_get_cell_type)
(gtk_ctree_get_text) -> (gtk_ctree_node_get_text)
(gtk_ctree_get_pixmap) -> (gtk_ctree_node_get_pixmap)
(gtk_ctree_get_pixtext) -> (gtk_ctree_node_get_pixtext)
(gtk_ctree_set_foreground) -> (gtk_ctree_node_set_foreground)
(gtk_ctree_set_background) -> (gtk_ctree_node_set_background)
(gtk_ctree_set_row_data) -> (gtk_ctree_node_set_row_data)
(gtk_ctree_set_row_data_full) -> (gtk_ctree_node_set_row_data_full)
(gtk_ctree_get_row_data) -> (gtk_ctree_node_get_row_data)
(gtk_ctree_moveto) -> (gtk_ctree_node_moveto)
(gtk_ctree_sort) -> (gtk_ctree_sort_node)
(gtk_ctree_is_visibe) -> (gtk_ctree_is_viewable)
* gtk/gtkctree.c :
(cell_empty) (cell_set_text) (cell_set_pixmap) (cell_set_pixtext):
removed and replaced by (set_cell_contents)
(set_cell_contents): function for class method set_cell_contents
(real_insert_row): function for class method insert_row
(real_remoce_row): function for class method remove_row
(real_sort_list): function for class method sort_list
(default_compare): removed. CTree now also compares two GtkCTreeRows
instead of two GtkCTreeNodes.
(gtk_ctree_unlink): call gtk_ctree_collapse if parent is empty after
unlinking the node
(real_tree_expand) (real_tree_collapse): fix for refcounting of
node pixmaps
(set_node_info): call gtk_ctree_node_set_pixtext instead of
manipulating the row itself
* gtk/testgtk.c: use renamed functions of GtkCTree.
new sample to show gtk_ctree_export_to_gnode and gtk_ctree_insert_gnode
at work.
Tim Janik [Mon, 17 Aug 1998 14:48:51 +0000 (14:48 +0000)]
removed gtk_input_add_interp.
Mon Aug 17 15:31:38 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmain.c: removed gtk_input_add_interp.
* gtk/gtkeditable.c (gtk_editable_set_position): fixed bogus "return"
keyword.
(gtk_editable_get_event_time): fix default: case.
* gtk/gtkclist.c (gtk_clist_swap_rows): fixes for lvalue casts.
* gdk/gdkpixmap.c: made a bunch of unexported functions static.
* gdk/gdkcolor.c:
* gdk/gdkvisual.c: include "gdkx.h", since it exports prototypes
of our functions.
* various minor compilation cleanups, such as bogus commas in
enums and similar things.
M
Dietmar Maurer [Mon, 17 Aug 1998 08:28:13 +0000 (08:28 +0000)]
gdk.c: fixed bug in gdk_input_remove
Tim Janik [Mon, 17 Aug 1998 05:49:13 +0000 (05:49 +0000)]
NULL terminate the arg list to g_strconcat() (thanx raph).
Mon Aug 17 07:47:43 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmain.c (gtk_init): NULL terminate the arg list to g_strconcat()
(thanx raph).
Shawn Amundson [Mon, 17 Aug 1998 05:24:45 +0000 (05:24 +0000)]
release delayed...